module FetionsHelper
  def fetion_verify_image_tag(fetion_verify_image,args = {})
    args[:title] ||= '飞信验证码'
    args[:alt] ||= args[:title]
    image_tag  "#{ Rails.env.production? ? "http://#{request.subdomains.join('.')}#{request.subdomains.any? ? '.':''}#{request.domain}" : "http://localhost:9000" }/public/images/fetion_verify/#{fetion_verify_image.file_name}", args
  end
end
